package cn.ainit.test.web;
public class Question {
	   public static void main(String[] args) {
				A a = new B();
				a.method();
	   }
}
class A {
	int q = 0;
	public void method(){
	 System.out.println("A.method"+q);
	}
}

class B extends A{
	int q = 1;
	public void method(){
	System.out.println("B.method"+q);
	}
}